import request from '@/utils/request'

// 查询用户登录相关短信列表
export function listSmSendRecord(query) {
  return request({
    url: '/buss/smSendRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户登录相关短信详细
export function getSmSendRecord(messageId) {
  return request({
    url: '/buss/smSendRecord/' + messageId,
    method: 'get'
  })
}

// 新增用户登录相关短信
export function addSmSendRecord(data) {
  return request({
    url: '/buss/smSendRecord',
    method: 'post',
    data: data
  })
}

// 修改用户登录相关短信
export function updateSmSendRecord(data) {
  return request({
    url: '/buss/smSendRecord',
    method: 'put',
    data: data
  })
}

// 删除用户登录相关短信
export function delSmSendRecord(messageId) {
  return request({
    url: '/buss/smSendRecord/' + messageId,
    method: 'delete'
  })
}
